import { BaseResponseData } from "@renderer/interface/baseData";
import { ConfigForm, ConfigGroupItem, SearchConfigForm } from "@renderer/interface/recruit_config";
import http from "@renderer/utils/request";

/**
 * 设置查询接口
 * @param form 
 * @returns 
 */
export const getConfigPageApi = (form?: SearchConfigForm) =>
	http.get<BaseResponseData<ConfigGroupItem[]>>('/crm/recruit/config/page', form)

/**
 * 增加或修改设置
 * @param form 
 * @returns 
 */
export const postConfigAOUApi = (form: ConfigForm) =>
	http.post<BaseResponseData<null>>(`/crm/recruit/config/${form.id ? 'update' : 'add'}`, form)